package com.lanou.mapper;


import com.lanou.bean.Service;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceMapper {

    List<Service> selectall();
    void serviceDeleteByAccountId(Integer accountId);
    List<Service> selectCostById(Integer costId);
    void addservice(Service service);
    void deleteservice(Integer serviceid);
    String osUsernameisexist(String osUsername);

    void updateStatusByServiceId(@Param("status") String status, @Param("serviceId") Integer serviceId);

    List<Service> findServiceById(Integer serviceId);

    void updateCostIdByServiceId(@Param("costId") Integer costId, @Param("serviceId") Integer serviceId);

    List<Service> selectByServiceId(Integer serviceId);
}